/**
 * 
 */
package model.container.edges;

import model.Container;
import model.Edge;

/**
 * Abstract class to store the edges of a graph
 */
public abstract class Edges implements Container {
	/**
	 * Add an Item(Edge) to the Structure
	 * @param e The Item to add
	 * @see Edge#Edge()
	 */
	abstract public void addItem(Edge e);

	/**
	 * Add an Item(Edge) to the Structure
	 * @see Structure#addEdge(Edge)
	 * @see Edge#Edge(int, int, int)
	 */
	public void addItem(int a, int b, int c) {
		addItem(new Edge(a, b, c));
	}
	
	/**
	 * Find the Edge having the minimal weight
	 */
	public abstract Edge getMinimal();
}
